package com.ld.admin.util.daliyNews;

import com.ld.admin.util.daliyNews.impl.DaliyNewsZhihu;
import com.ld.shieldsb.common.core.ServiceFactory;

public class DaliyNewsFactory extends ServiceFactory<DaliyNews> {

    static {
        // 注意工厂类不要一开始就注册对象，否则可能缺少必要的jar包不能实例化报错，应该注册类
        getInstance().registerServiceClass(DaliyNewsZhihu.NAME, DaliyNewsZhihu.class); // Bing
    }

    public static ServiceFactory<DaliyNews> getInstance() {
        return getInstance(DaliyNewsFactory.class);
    }

}
